let app = getApp();
Page({
  data: {
    imageList: null,
    detail:{}
  },
  onLoad(options) {
    let that = this;
    this.setData({
      detail:options,
      imageList: [options.url]
    })
  },
  previewImage(e) {
    let current = e.target.dataset.src;
    wx.previewImage({
      current: current,
      urls: this.data.imageList
    });
  },
})